/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Socket;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author pablo
 */
public class ClienteEscucha  extends Thread{

 //   int tiempo=5;
    Cliente cliente;
    int tiempo=10;
    public ClienteEscucha(Cliente c){

        cliente=c;
    }

    @Override
    public void run() {

        while(true){ cliente.recibirVector();
            try {
                sleep(tiempo);
            } catch (InterruptedException ex) {
                Logger.getLogger(ClienteEscucha.class.getName()).log(Level.SEVERE, null, ex);
            }
        }


    }

}
